<meta charset="utf-8"/>
		<script src="../../../js/mui.min.js"></script>
		<script src="../../../js/index.js"></script>
		<script src="../../../js/jquery-1.9.1.min.js"></script>
        <script type="text/javascript">
            
        mui.plusReady(function() {
			var self = plus.webview.currentWebview();
			var type = self.type; 
        	// 隐藏滚动条
            plus.webview.currentWebview().setStyle({scrollIndicator:'none'});
            
                 mui.ajax({ //ajax请求
					url: getServerIp + 'AppCourse/commentAll',
					type: 'GET',
					data: {    
                        id:type
					}, //传参
					success: function(data, textStatus, jqXHR) {
						document.getElementById('courseComment').innerHTML = "";
						var table = document.body.querySelector('#courseComment');
					//	var obj = JSON.parse(data);
					var list =  data.courseComment;
					if(list==null || list ==""){
						var li = document.createElement('li');
						li.innerHTML = "暂无数据"
						table.appendChild(li);
					}else{
						for(var i = 0;i<list.length;i++){
						   var obj = list[i];
	    					var li = document.createElement('li');
	    						li.id=obj.id;
//								li.className = 'mui-table-view-cell mui-media';
								
								li.innerHTML ='<li class="" style="padding: 15px 0;border-top:1px solid #ddd;" >'+
								    '<div class="" style="">'+
								    '<div style="padding-bottom: 10px;bottom: 10px;height: 30px;">'+
								    '<img src="'+getServerIp+'/Public/Uploads/image/user/'+obj.image_user+'" style="float: left;padding-right: 15px;height:30px;"  />'+
								    '<p class="mui-ellipsis">'+obj.username+'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'+obj.create_time+'</p>'+
								    '</div><br/>'+obj.message;
								    if(obj.image != "" && obj.image != null){
										var str = obj.image;
										var strs=str.split("-"); //字符分割 
										for (var ij=0;ij<strs.length ;ij++ ) {
											li.innerHTML += '<img src="'+getServerIp+'/Public/Uploads/image/courseComment/'+strs[ij]+'" style="width: 80%;margin-left:10%;" />';
										}
									}
								    li.innerHTML +='</div>'+
								    '</li>';
						
	                        table.appendChild(li);
	                        
						}
					}
					}
				})
            
        });
        
        </script>
        
<link rel="stylesheet" href="../../../css/mui.min.css">
<div class="mui-content">
			<!--<ul class="mui-table-view mui-table-view-chevron" style="margin-bottom: 50px;">
				<li class="mui-table-view-cell mui-media" style="padding: 11px 15px;" >-->
			<ul class="mui-table-view mui-table-view-chevron" style="margin-bottom: 50px;padding: 0 15px;top: -20px;" id="courseComment">
				<!--<li class="mui-table-view-cell mui-media" style="padding: 11px 15px;" >
					<a>
						<div class="mui-media-body">
							<div style="padding-bottom: 10px;bottom: 0;height: 30px;">
							    <p class='mui-ellipsis'>152****2098&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2015-5-26</p>
							</div>
							环境一般，但是老师很好，教得也耐心，一直给我们鼓励打气。缘分吧，主要还是要看人对不对。体验两次就直接办卡了。
						</div>
					</a>
				</li>
				<li class="mui-table-view-cell mui-media" style="padding: 11px 15px;">
					<a>
						<div class="mui-media-body">
							<div style="padding-bottom: 10px;bottom: 0;height: 30px;">
							    <p class='mui-ellipsis'>152****2098&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2015-5-26</p>
							</div>
							坐地铁出来走5分钟就能到了很方便的，教室很明亮很干净，最棒的是小班制，所以不会觉得挤，镜子里都能看到自己。老师教的很热情，选的舞也很棒，非常喜欢。
						</div>
					</a>
				</li>
				<li class="mui-table-view-cell mui-media" style="padding: 11px 15px;">
					<a>
						<div class="mui-media-body">
							<div style="padding-bottom: 10px;bottom: 0;height: 30px;">
							    <p class='mui-ellipsis'>152****2098&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2015-5-26</p>
							</div>
							老师很细心，很有耐心，整体的环境给人感觉很舒服，很放松
						</div>
					</a>
				</li>
				<li class="mui-table-view-cell mui-media" style="padding: 11px 15px;">
					<a>
						<div class="mui-media-body">
							<div style="padding-bottom: 10px;bottom: 0;height: 30px;">
							    <p class='mui-ellipsis'>152****2098&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2015-5-26</p>
							</div>
							地方不大，很多人一起上，进度不分快慢，新人和老学员一起学一个舞蹈，新人会跟不上。团购需要在两周内用
						</div>
					</a>
				</li>
				<li class="mui-table-view-cell mui-media" style="padding: 11px 15px;">
					<a>
						<div class="mui-media-body">
							<div style="padding-bottom: 10px;bottom: 0;height: 30px;">
							    <p class='mui-ellipsis'>152****2098&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2015-5-26</p>
							</div>
							地理位置到我家不方便 几个老师都很好 特别是瑜伽的 环境有点简陋 没有洗澡的地方 毕竟价格在那
						</div>
					</a>
				</li>
				<li class="mui-table-view-cell mui-media" style="padding: 11px 15px;">
					<a>
						<div class="mui-media-body">
							<div style="padding-bottom: 10px;bottom: 0;height: 30px;">
							    <p class='mui-ellipsis'>152****2098&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2015-5-26</p>
							</div>
							上了两节课总体不错，可惜自己时间对不上
						</div>
					</a>
				</li>
				<li class="mui-table-view-cell mui-media" style="padding: 11px 15px;">
					<a>
						<div class="mui-media-body">
							<div style="padding-bottom: 10px;bottom: 0;height: 30px;">
							    <p class='mui-ellipsis'>152****2098&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2015-5-26</p>
							</div>
							超级好，越学越自信，觉得自己美美哒～
						</div>
					</a>
				</li>
				<li class="mui-table-view-cell mui-media" style="padding: 11px 15px;">
					<a>
						<div class="mui-media-body">
							<div style="padding-bottom: 10px;bottom: 0;height: 30px;">
							    <p class='mui-ellipsis'>152****2098&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2015-5-26</p>
							</div>
							挺不错的
						</div>
					</a>
				</li>
				<li class="mui-table-view-cell mui-media" style="padding: 11px 15px;">
					<a>
						<div class="mui-media-body">
							<div style="padding-bottom: 10px;bottom: 0;height: 30px;">
							    <p class='mui-ellipsis'>152****2098&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2015-5-26</p>
							</div>
							很不错，唯一不满意的是规定两周内用完，正好最近很忙， 四次体验卡只去了一次，有点小遗憾
						</div>
					</a>
				</li>
				<li class="mui-table-view-cell mui-media" style="padding: 11px 15px;">
					<a>
						<div class="mui-media-body">
							<div style="padding-bottom: 10px;bottom: 0;height: 30px;">
							    <p class='mui-ellipsis'>152****2098&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2015-5-26</p>
							</div>
							南京JM Dance专业拉丁舞基础班
						</div>
					</a>
				</li>
				<li class="mui-table-view-cell mui-media" style="padding: 11px 15px;">
					<a>
						<div class="mui-media-body">
							<div style="padding-bottom: 10px;bottom: 0;height: 30px;">
							    <p class='mui-ellipsis'>152****2098&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2015-5-26</p>
							</div>
							南京JM Dance专业拉丁舞基础班
						</div>
					</a>
					</a>-->
				</li>
			</ul>
</div>